home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 50
/
Aminet 50 (2002)(GTI - Schatztruhe)[!][Aug 2002].iso
/
Aminet
/
biz
/
dopus
/
cut_copy.lha
/
CUT-COPY-PASTE.dopus5
Wrap
Text File
|
2002-06-03
|
2KB
|
68 lines
/*$VER: CUT-COPY-PASTE 1.1 (16.11.2001)
Àâòîð Âëàäèìèð ßâîðñêèé (jvovka@belnet.ru).
ARexx-ñêðèïò äëÿ Directory Opus 5.
Ýìèòèðóåò ìåòîä ìàíèïóëÿöèè ñ ôàéëàìè Windows9x.
Ýòî ïðîñòîé, íî íå î÷åíü óìíûé ñêðèïò... :-)
Function: ARexx DOpus5:ARexx/CUT-COPY-PASTE.dopus5 {Qp} {Ql} CUT/COPY/PASTE
Flags : none
Ïðèìåð: 1. Êîïèðîâàíèå ôàéëîâ.
ARexx DOpus5:ARexx/CUT-COPY-PASTE.dopus5 {Qp} {Ql} COPY
2. Âûðåçêà ôàéëîâ.
ARexx DOpus5:ARexx/CUT-COPY-PASTE.dopus5 {Qp} {Ql} CUT
3. Âñòàâêà ôàéëîâ.
ARexx DOpus5:ARexx/CUT-COPY-PASTE.dopus5 {Qp} {Ql} PASTE
*/
OPTIONS RESULTS
PARSE ARG port handle action .
ADDRESS VALUE port
lister query handle path
path=RESULT
lister set handle busy on
IF action~="PASTE" THEN
DO
lister query handle selentries stem entry
lister query handle numselentries
entries=RESULT
Open(copylist,'T:copylist','W')
WriteLn(copylist,action)
WriteLn(copylist,entries)
WriteLn(copylist,path)
DO i=0 TO entry.count-1
WriteLn(copylist,entry.i)
END
Close(copylist)
END
ELSE
DO
Open(copylist,'T:copylist','R')
action = ReadLn(copylist)
filecount = ReadLn(copylist)
source = ReadLn(copylist)
lister set handle newprogress name bar info
lister set handle newprogress title "Âñòàâêà..."
lister set handle newprogress info "Èç '"source"'"
DO i=0 TO filecount-1
filename=ReadLn(copylist)
lister set handle newprogress name filename
lister set handle newprogress bar filecount i
IF action="COPY" THEN
command copy source||filename path
ELSE
command move source||filename path
END
lister set handle newprogress phandle off
Close(copylist)
lister read handle path force
END
lister set handle busy off
EXIT